package com.bootcamp.s1_0823.jvm;

/**
 * @program: myClassCode
 * @description:
 * @author: Keyu Li
 * @create: 2021-10-20 20:34
 **/

public class Demo2_ClassLoader {
    /**
     * @Title: main
     * @Description: main函数，实现多种功能
     * @param args:
     * @return void
     * @date 10/21/2021 9:27
     */
    public static void main(String[] args) {
        String extDirs = System.getProperty("java.ext.dirs");
        for (String path : extDirs.split(";")) {
            System.out.println(path);
        }

        ClassLoader classLoader = Demo2_ClassLoader.class.getClassLoader();
        System.out.println(classLoader);

        classLoader = String.class.getClassLoader();
        System.out.println(classLoader);
    }
}
